

function factory (ArticleModel) {
  return function (req, res) {
    var body = req.body
    ArticleModel.findOne({_id: body.article_id}, function (err, article) {
      article.comment.push(body.comment)
      article.save(function(err, article) {
        res.send('1')
      })
    })
  }
}

module.exports = factory